package com.itwk.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itwk.common.utils.PageUtils;
import com.itwk.gulimall.product.entity.PmsAttrEntity;
import com.itwk.gulimall.product.entity.PmsProductAttrValueEntity;
import com.itwk.gulimall.product.vo.AttrResponse;
import com.itwk.gulimall.product.vo.AttrVo;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author wangke
 * @email wangke19970512@163.com
 * @date 2021-01-07 22:57:11
 */
public interface PmsAttrService extends IService<PmsAttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveAttrRelation(AttrVo attrVo);

    PageUtils attrRelationList(Map<String, Object> params, Long catelogId, String attrType);

    AttrResponse getAttrResponse(Long attrId);

    void updateAttrRelation(AttrVo attrVo);

    List<PmsProductAttrValueEntity> getSpuBaseAttr(Long spuId);

    void updateSpuBaseAttr(List<PmsProductAttrValueEntity> productAttrValueEntities, Long spuId);
}

